<div class="pageHeader" style="border:1px #B8D0D6 solid">
	<form id="pagerForm" method="post" action="admin.php?mod=info&action=index&do=info_ajax" onsubmit="return divSearch(this, 'jbsxBox');">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
        <input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" />
        <input type="hidden" name="info_cateid" value="{$info_cateid}" />
        
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>{lang info_title}</label>
				<input class="" name="title_keyword" value="{$title_keyword}" type="text">
			</li>	   
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">{lang search}</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
    	<div class="panelBar">
            <ul class="toolBar">
                    <li><a class="add" href="admin.php?mod=info&do=add" target="navTab"><span>{lang add}</span></a></li>
                    <li><a class="delete" href="admin.php?mod=info&do=delete&info_id={{info_id}}" target="ajaxTodo" title="{lang confirm_delete}"><span>{lang delete}</span></a></li>
                    <li><a class="edit" href="admin.php?mod=info&do=edit&info_id={{info_id}}" target="navTab"><span>{lang edit}</span></a></li>
                <li class="line">line</li>
                <li class=""><a class="icon" href="admin.php?mod=info_cate&do=index" target="dialog" mask="true" rel="admin_info_cate_index" title="{lang info_cate_manage}"><span>{lang info_cate_manage}</span></a></li>
            </ul>
	</div>
	<table class="table" layoutH="180" width="100%" rel="jbsxBox">
		<thead>
                    <tr>
                        <th width="30">{lang operate}</th>
                        <th orderfield="info_id" width="60">{lang id}</th>
                        <th width="80">{lang info_cate}</th>
                        <th>{lang info_title}</th>
                    </tr>
		</thead>
		<tbody>
            <!--{loop $page_array $pkey $pvalue}-->
			<tr target="info_id" rel="{$pvalue[info_id]}">
                <td><input type="checkbox" name="check_info" value="{$pvalue[info_id]}" onclick="selectOne(this)"></td>
                <td>{$pvalue[info_id]}</td>
                <td>{$pvalue[cate_title]}</td>
                <td><a href="index.php?mod=index&action=info&do=detail&id={$pvalue[info_id]}" title="{$pvalue[title]}" target="_blank">{$pvalue['title']}</a></td>
			</tr>
            <!--{/loop}-->
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>{lang perpage}</span>
			<select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, 'jbsxBox')">
                            <option <!--{if $numPerPage==10}--> selected<!--{/if}--> value="10">10</option>
                            <option <!--{if $numPerPage==20}--> selected<!--{/if}--> value="20">20</option>
                            <option <!--{if $numPerPage==50}--> selected<!--{/if}--> value="50">50</option>
                            <option <!--{if $numPerPage==100}--> selected<!--{/if}--> value="100">100</option>
			</select>
			<span> {lang total}{$pagetotal}</span>
		</div>
		<div class="pagination" rel="jbsxBox" totalCount="{$pagetotal}" numPerPage="{$numPerPage}" pageNumShown="5" currentPage="{$pageNum}"></div>
	</div>
</div>
<script type="text/javascript">
function selectOne(obj){
    var objCheckBox = document.getElementsByName("check_info");
    for(var i=0; i < objCheckBox.length; i++){
        //判断复选框集合中的i元素是否为obj，若为否则便是未被选中
        if (objCheckBox[i]!=obj) {
            objCheckBox[i].checked = false;
        } else{
            //若是，原先为被勾选的变成勾选，反之则变成未勾选
            //objCheckBox[i].checked = obj.checked;
            //或者使用下句，亦可达到同样效果
            objCheckBox[i].checked = true;
        }
    }
}
</script>